package com.yxy.patient.maintenanceplan;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.yxy.patient.base.BaseActivity;
import com.yxy.patient.databinding.ActivityMaintenancePlanBinding;

public class MaintenancePlanActivity extends BaseActivity {
    private final String[] titles = new String[]{"全部", "维护", "防治"};

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityMaintenancePlanBinding activityMaintenancePlanBinding = ActivityMaintenancePlanBinding.inflate(getLayoutInflater());
        setContentView(activityMaintenancePlanBinding.getRoot());

        activityMaintenancePlanBinding.tabLayout.setTitles(titles);
        activityMaintenancePlanBinding.tabLayout.setViewPager2(activityMaintenancePlanBinding.viewPager);
    }
}
